package org.example.petitionplatformsystem.dao;

import org.example.petitionplatformsystem.dao.model.PetitionEvents;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PetitionEventsRepository extends JpaRepository<PetitionEvents, Long>  {
    public List<PetitionEvents> findAllByUserID(Long UserID);
    public PetitionEvents findByEventIDAndUserID(Long EventID, Long UserID);
    public List<PetitionEvents> findPetitionEventsByStatus(Long status);
    public List<PetitionEvents> findPetitionEventsByWorkId(Long workId);

}
